package com.sto.stoapp.dataprocess.parcelable;

import android.os.Parcel;
import android.os.Parcelable;

public class GetTableParcel implements Parcelable {

	// 代码
	private String selectCode;
	// 名称
	private String selectName;
	// 属性
	private String property;

	public String getSelectCode() {
		return selectCode;
	}

	public void setSelectCode(String selectCode) {
		this.selectCode = selectCode;
	}

	public String getSelectName() {
		return selectName;
	}

	public void setSelectName(String selectName) {
		this.selectName = selectName;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	@Override
	public int describeContents() {

		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(selectCode);
		dest.writeString(selectName);
		dest.writeString(property);
	}

	public static final Parcelable.Creator<GetTableParcel> CREATOR = new Creator<GetTableParcel>() {

		@Override
		public GetTableParcel[] newArray(int size) {
			return new GetTableParcel[size];
		}

		@Override
		public GetTableParcel createFromParcel(Parcel source) {
			GetTableParcel entity = new GetTableParcel();
			entity.selectCode = source.readString();
			entity.selectName = source.readString();
			entity.property = source.readString();
			return entity;
		}
	};

}
